package test4;

public class Cash extends Payment{
    private double cashTendered;

    public Cash(double amount, double cashTendered) {
        super(amount);
        this.cashTendered = cashTendered;
    }

    @Override
    public void processPayment() {
        System.out.println("Cash payment processed.");
    }

    public String getPaymentDetails() {
        return "Cash Payment, Amount Tendered: $" + cashTendered;
    }
}
